package com.ys.enume.storage;

public class TccOfflineAssembleEnum {
	
	/*
	 * 组装状态
	 */
	public enum State {
		NOT("未组装", 0), NORMAL("正常组装", 1), ABNORMAL("异常组装", 2);
		public String name;
		public Integer value;

		private State(String name, Integer value) {
			this.name = name;
			this.value = value;
		}

		public static String getName(int value) {
			for (State e : State.values()) {
				if (e.value == value) {
					return e.name;
				}
			}

			return "";
		}
	}

	/*
	 * 打印状态
	 */
	public enum PrintStatus {
		NOT_PRINT("未打印", 0),
		IS_PRINT("已打印", 1);
		public String name;
		public Integer value;

		private PrintStatus(String name, Integer value) {
			this.name = name;
			this.value = value;
		}
	}
}
